Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-6931] Update file shown in MFR when changing versions #2477

Conversation

futa-ikeda
Copy link
Contributor

@futa-ikeda futa-ikeda commented Jan 16, 2025

Purpose

  • Update the file version shown in mfr window when changing preprint versions

Summary of Changes

  • Don't use cached preprint or file-version in file renderer component

Screenshot(s)

Side Effects

QA Notes

Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it should work.

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I verified this locally :)

  1. Going to version 1 by URL

Screenshot 2025-01-16 at 16 22 48

  1. Going to version 2 using version drop down, now it makes a new and different request to MFR

Screenshot 2025-01-16 at 16 22 53

  1. Going to version 2 using URL (full page refresh), it makes the same MFR request as in Step 2.

Screenshot 2025-01-16 at 16 22 58

In addition, I actually went to version 1 when I am on version 1 using the dropdown link (between step 1 and 2) and no MFR request is made, this shows caching works when it should.

@futa-ikeda futa-ikeda merged commit a4535b7 into CenterForOpenScience:feature/preprints-doi-versioning Jan 16, 2025
9 checks passed
@futa-ikeda futa-ikeda deleted the mfr-version-changes branch January 16, 2025 21:31
@futa-ikeda futa-ikeda added this to the 25.03.0 milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants